
package com.ami.kvm.jviewer.kvmpkts;

import java.nio.ByteBuffer;
import java.nio.ByteOrder;

public class AutoDetectBw {
	public static final int AUTO_DETECT_BW_SIZE = 4;
	public IVTPPktHdr m_vHdr;
	public int m_load;
	ByteBuffer m_repBuf;
	private byte[] m_report;

	public AutoDetectBw(int paramInt) {
		this.m_load = paramInt;
		this.m_report = new byte[12];

		this.m_vHdr = new IVTPPktHdr((short) 16, 4, (short) 0);

		this.m_repBuf = ByteBuffer.wrap(this.m_report);
		this.m_repBuf.order(ByteOrder.LITTLE_ENDIAN);
		this.m_repBuf.limit(this.m_report.length);
	}

	public int size() {
		return 12;
	}

	public byte[] report() {
		this.m_repBuf.position(0);

		this.m_repBuf.put(this.m_vHdr.array());

		this.m_repBuf.putInt(this.m_load);
		return this.m_report;
	}
}

/*
 * Location:
 * D:\Users\tianlin\Downloads\JViewer.jar!\com\ami\kvm\jviewer\kvmpkts\
 * AutoDetectBw.class Java compiler version: 5 (49.0) JD-Core Version: 0.7.1
 */